package com.chengdu.third.service.Impl;

import com.chengdu.third.dao.IBmfwDao;
import com.chengdu.third.pojo.Bmfw;
import com.chengdu.third.service.IBmfwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jingbo
 * @create 2021--08--15  21:22
 */

@Service
public class IBmfwServiceImpl implements IBmfwService {

    @Autowired
    private IBmfwDao  iBmfwDao;


    @Override
    public List<Bmfw> findAll() {
        return iBmfwDao.find();
    }

    @Override
    public void deleteByid(long id) {
          iBmfwDao.delete(id);
    }

    @Override
    public void updateByid(Bmfw bmfw) {
          iBmfwDao.update(bmfw);
    }

    @Override
    public void addbmfw(Bmfw bmfw) {
            iBmfwDao.add(bmfw);
    }

    @Override
    public Bmfw getBmfwById(long id) {
        return iBmfwDao.getBmfwById(id);
    }
}
